# -*- coding: utf-8 -*-
"""
name:额度-受困专项续贷_四川
code：HQD_pricing_SK_XD_SC

@author: maggieliu
"""

import sys
import re
import datetime
reload(sys)
sys.setdefaultencoding('utf-8')

#还款意愿调整系数


rating_level = decisionModelResult.get("ratingLevel")
pay_coe_dict = {'A': 1, 'B': 1, 'C': 1,'D':0.9 ,'E':0.9,u'缺失值':0}
pay_ad = pay_coe_dict[rating_level]

#授信额度
#资金需求额度
#request_amount = float(ratingRequest.get('amount'))
#客户贷款余额
last_amount=float(ratingRequest.get('relaCreditBalance'))
#
credit_amount= round(last_amount*pay_ad,2)

#credit_amount1=round(credit_amount/100000,1)*100000

result = credit_amount